package get;

import java.util.List;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
import org.jsoup.select.Elements;

public class GetChildren {
	public List<Node> GetFirstGen (Element el) {
		return el.childNode(0).siblingNodes();
	}
	
	public static void main (String args[]) {
		Document doc;
		doc = Jsoup.parse("<div>1.1	<div>1.1.1</div><div>1.1.2<div>1.1.2.1</div></div><div>1.1.3</div></div><div>1.2<div>1.2.1</div><div>1.2.1<div>1.2.1.1</div></div><div>1.2.1</div></div>");
		Elements elements = new Elements();
		elements = doc.getElementsByTag("div");
		Element el = elements.get(0);
		Elements childElements = el.children();
		
//		for (Element childEl : childElements) {
//			System.out.println(childEl.ownText());
//		}
	}
}
